import { Module } from '@nestjs/common';
import { KitsService } from './kits.service';
import { KitsController } from './kits.controller';
import { ClientsModule, Transport } from '@nestjs/microservices';

@Module({
    imports:[
        ClientsModule.registerAsync([{
            name: 'STORE_SERVICE',
            useFactory: () => ({
                transport: Transport.TCP,
                options: {
                    port: 9091,
                    retryAttempts: 5,
                    retryDelay: 3000
                }
            })
        }])
    ],
  controllers: [KitsController],
  providers: [KitsService],
  exports: [KitsService]  

})
export class KitsModule {}
